<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\common\library\Token;
use Endroid\QrCode\QrCode;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function _initialize()
    {
        parent::_initialize();
    }


    public function index()
    {
//        echo "<img src='/uploads/avatar/20180628/039cfb8a4fa9823490c5cf14e9574777.jpg'></img>";
//        return $this->view->fetch()
        echo "<script>location.href = '/Html/te/login/login.html'</script>";
    }

    public function news()
    {
        $newslist = [];
        //  新闻列表
        return jsonp(['newslist' => $newslist, 'new' => count($newslist), 'url' => 'https://www.fastadmin.net?ref=news']);
    }

}
